x=eval(input("请输入x的值"))
if x<=5000 :
    print("不需要纳税")
elif 5000<x<=6500 :
    xx=(x-5000)*0.03
    print("本月需交税{}".format(xx))
elif 6500<x<=9500 :
    xx=(x-6500)*0.1
    print("本月需交税{}".format(xx+1500*0.03))   
elif 9500<x<=14000 :
    xx=(x-9500)*0.2
    print("本月需交税{}".format(xx+1500*0.03+3000*0.1))
elif 14000<x<=40000 :
    xx=(x-14000)*0.25
    print("本月需交{}".format(xx+1500*0.03+3000*0.1+4500*0.2)) 
elif 40000<x<=60000 :
    xx=(x-40000)*0.3
    print("本月需交税{}".format(xx+1500*0.03+3000*0.1+4500*0.2+26000*0.25))
elif 60000<x<=85000 :
    xx=(x-60000)*0.35            
    print("本月需交税{}".format(xx+1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3))
else:
    x>85000
    xx=(x-85000)*0.45
    print("本月需交税{}".format(xx+1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+25000*0.25))    
    